package com.example.ioc.service;

import org.springframework.stereotype.Service;

/**
 * <p> 循环依赖 </p>
 *
 * @author Chris
 * @since 2022/10/25 22:33
 */
@Service
public class CircleService {

    private final TestService testService;

    public CircleService(TestService testService) {
        this.testService = testService;
    }

    public void circle() {
        System.out.println("circle");
    }


    public void test() {
        testService.test();
    }
}